package com.initial.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import lombok.Data;
import org.apache.catalina.User;
import org.apache.ibatis.type.Alias;

/**
 * 
 * @TableName tb_crm_business
 */
@TableName(value ="tb_crm_business")
@Data
@Alias("business")
public class TbCrmBusiness implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String name;

    private String origin;

    private String type;

    private Integer estimatePrice;

    private Integer customerId;

    private Integer creatorUserId;

    private Integer ownerUserId;

    private Integer gainRate;

    private Integer totalAmount;

    private Double subtotalVal;

    private Double discountPrice;

    private Double salesPrice;

    private String dueDate;

    private String createTime;

    private String updateTime;

    private Integer updateUserId;

    private Integer statusId;

    private Double totalPrice;

    private String nextstep;

    private String nextstepTime;

    @TableLogic
    private Integer deleteStatus;

    private Integer deleteUserId;

    private String deleteTime;

    private Integer contactsId;

    private String contractAddress;

    private String description;

    /*private String customerName;
    private String ownerName;*/

    private TbCrmCustomer tbCrmCustomer;
    private TbSystemUser tbSystemUser;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}